package com.jswlw.dao.base;

import com.jswlw.entity.base.User;
import com.jswlw.vo.AdminUserVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    int findCount(Map map);

    List<User> findAll(Map condition);

    User find4LoginName(String loginName);

    List<AdminUserVo> findUserAndRole();

    void delete4LoginName(String loginName);

    User find4OpenId(@Param("openId") String openId);
}